<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html lang="zh-cn">
<%@ include file="/WEB-INF/view-system/include/myTaglib.jsp"%>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
	<script src="${ctxStaticSystem }/js/role/role.js" type="text/javascript"></script>
    <link href="${ctxStaticSystem }/css/roleManage/roleManage.css" rel="stylesheet" type="text/css"/>
	<title>角色管理</title>
</head>
<!-- 新增角色信息 -->
<tags:ajax id="addRoleAjax" url="${ctx }/sys/roleMgr/createRole" autoSend="false" contentType="application/x-www-form-urlencoded" type="post"
	formQuery="#createRoleFrm" formSubmit="true"
	onSuccess="ajaxEvents.onCreateSucc"/>
<tags:ajax id="queryRoleInfoListAjax" url="${ctx }/sys/roleMgr/roleList" autoSend='false' type='post'
		   formSubmit="true" formQuery="#rolesTableFrm" onSuccess="ajaxEvents.onTableLoadSucc"/>
<body>
			<form action="" id="createRoleFrm" class='form-horizontal'>
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>角色名称：</span>
						</div>
						<div class="col-md-9">
							<input name="roleName" type="text" class="inputC form-control" required="required">
						</div>
					</div>
						<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>角色类型：</span>
						</div>
						<div class="col-md-9">
							<!-- <input name="roleType" type="text" class="inputC form-control"> -->
							<tags:dropcode codeType="roleType" id="dropRoleType" name="roleType" 
							 	className="inputC form-control" showSelectAll="true" showSelectName="空值"
							 	showSelectValue=""/>
						</div>
					</div>
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>状态：</span>
						</div>
						<div class="col-md-9">
							<select name="state" class="inputC form-control">
								<option value="1" selected="selected">启用</option>
								<option value="0">禁用</option>
							</select>
						</div>
					</div>
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>等级：</span>
						</div>
						<div class="col-md-9">
							<input name="gradeLevel" type="number" class="inputC form-control">
						</div>
					</div>
					<div class="col-sm-12 outr">
						<div class="col-md-3 iname">
							<span>备注：</span>
						</div>
						<div class="col-md-9">
							<textarea rows="" cols="" name="remark" class="inputC form-control"></textarea>
						</div>
					</div>
				<div style="text-align: center;">
						<button class="btn btn-primary m-btn" onclick="buttonEvents.commitAddRoleInfo()">提交</button>
						<button type="reset" class="btn btn-default m-btn" data-dismiss="modal">取消</button>
						<br>
				</div>
			</form>
</body>
</html>